#ifndef KVS_DEFINES
#define KVS_DEFINES

typedef int	STATE;
typedef int	PTR_DISK;
typedef int	PTR_KW;
typedef int	HASH;
typedef	int	INIT_TYPE;

typedef	unsigned int	uint;
typedef	unsigned char	uchar;
typedef	uchar		block;

#define	INIT_TYPE_CREATE	0
#define	INIT_TYPE_LOAD		1
#define PTR_KW_SIZE		4
#define CHUNK_SIZE		(16*1024)

#define	IDX_NODE_SIZE		24
#define	IDX_NODE_FULL		(10000001)

/***********************************************/
/* CHUNK_oriented */
#define	DISK_IMAGE		0
#define	DISK_VALUE		34293
#define	DISK_IMAGE_CHUNK_SIZE	34293

/* K-byte-oriented    XXX: K*/
#define	IMAGE_K_SUPER		0	
#define	IMAGE_K_INDEX		1
#define IMAGE_K_DISK		274342	
#define	IMAGE_K_SUPER_SIZE	1	
#define	IMAGE_K_INDEX_SIZE	274341		/* sum of IMAGE_XXX_SIZE @ index.c */
#define IMAGE_K_DISK_SIZE	274342		/* sum of IMAGE_D_XXX_SIZE @ disk.c */

#define	IMAGE_K_SIZE		548684



#endif

